package com.e.dianshang.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * User: HP
 * Date: 2020/11/9 18:16
 * Description:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
//利用JPA注解关联tb_ticket表
@Table(name = "tb_storage_value")
public class StorageValue implements Serializable {

    @Id
    @Column(name = "sv_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    // 规格id
    @Column(name = "sv_g_id")
    private Integer gId;

    // 库存表id
    @Column(name = "sv_gs_id")
    private Integer goodsStorageId;

    // 库存值
    @Column(name = "sv_value")
    private String storageValue;
}
